package com.store.app.pay.alipay;

import org.json.JSONException;
import org.json.JSONObject;
/**
 * 支付宝模型
 * @author 谢剑民
 *
 */
public class AlipayModel{

	public String getAlipay_params() {
		return alipay_params;
	}

	public void setAlipay_params(String alipay_params) {
		this.alipay_params = alipay_params;
	}

	private String alipay_params;


	public void json2Model(String result)  {
		try {
			JSONObject object = new JSONObject(result);
			alipay_params = object.getString("alipay_params");//订单号
		}catch (Exception e){
			e.printStackTrace();
		}
//		partner= "shuilailecom@sina.com";
//		sellerId = " 2088911958301654";
//		key = "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCnxj/9qwVfgoUh/y2W89L6BkRAFljhNhgPdyPuBV64bfQNN1PjbCzkIM6qRdKBoLPXmKKMiFYnkd6rAoprih3/PrQEB/VsW8OoM8fxn67UDYuyBTqA23MML9q1+ilIZwBC2AQ2UBVOrFXfFl75p6/B5KsiNG9zpgmLCUYuLkxpLQIDAQAB";


	}

	@Override
	public String toString() {
		return "AlipayModel{" +
				"alipay_params='" + alipay_params + '\''+
				'}';
	}
}
